package com.tchy.cloud.entity;

import javax.persistence.*;
import java.util.Date;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * xmweilove
 * 量表得分结果
 */
@Entity
@Table(name = "c_consumer_ques", schema = "", catalog = "")
public class CQuesDimResultEntity {
    private Long id;//主键 ques_dim_result_id
    private CConsumerQuesEntity customerQuesEntity;// 用户量表id  consumer_ques_id
    private CQDimEntity qDimEntity;//量表纬度id  ques_dim_id
    private CScoreResultEntity scoreResultEntity;//用户纬度结果分析id ques_score_result_id
    private Float oldScore;//原始得分 old_score
    private Float proScore;//专业得分 pro_score

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "ques_dim_result_id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "consumer_ques_id")
    public CConsumerQuesEntity getCustomerQuesEntity() {
        return customerQuesEntity;
    }

    public void setCustomerQuesEntity(CConsumerQuesEntity customerQuesEntity) {
        this.customerQuesEntity = customerQuesEntity;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ques_dim_id")
    public CQDimEntity getqDimEntity() {
        return qDimEntity;
    }

    public void setqDimEntity(CQDimEntity qDimEntity) {
        this.qDimEntity = qDimEntity;
    }

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "ques_score_result_id")
    public CScoreResultEntity getScoreResultEntity() {
        return scoreResultEntity;
    }

    public void setScoreResultEntity(CScoreResultEntity scoreResultEntity) {
        this.scoreResultEntity = scoreResultEntity;
    }

    @Basic
    @Column(name = "old_score")
    public Float getOldScore() {
        return oldScore;
    }

    public void setOldScore(Float oldScore) {
        this.oldScore = oldScore;
    }

    @Basic
    @Column(name = "pro_score")
    public Float getProScore() {
        return proScore;
    }

    public void setProScore(Float proScore) {
        this.proScore = proScore;
    }
}
